package grape.crm.rest.customerassociatedcontactperson.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 关联联系人表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="关联联系人添加表单对象")
public class CustomerAssociatedContactPersonAttrCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message="关联联系人姓名不能为空")
    @ApiModelProperty(value = "关联联系人姓名",required = true)
    private String name;

    @NotEmpty(message="关联联系人性别不能为空")
    @ApiModelProperty(value = "关联联系人性别，字典",required = true)
    private String genderDictId;

    @NotEmpty(message="联系方式类型不能为空")
    @ApiModelProperty(value = "联系方式类型,字典",required = true)
    private String contactTypeDictId;

    @NotEmpty(message="联系方式不能为空")
    @ApiModelProperty(value = "联系方式",required = true)
    private String contact;

    @NotEmpty(message="关系id不能为空")
    @ApiModelProperty(value = "关系id",required = true)
    private String relationId;

    @ApiModelProperty(value = "关系详情id")
    private String relationDetailId;



}
